package com.gjzhao.fmmall.constant;

/**
 * @Description: 存放常量信息
 * @Author: gjzhao
 * @Date Created in 2022-02-12 4:13 下午
 */
public class Constants {


    /** token的key */
    public static final String JWT_TOKEN_KEY = "gjzhao";

    /** 浏览器的'options'请求 */
    public static final String REQUEST_OPTION = "OPTIONS";

    /** 存放在请求头的 token 参数 */
    public static final String REQUEST_HEADER_PARAM_TOKEN = "token";

    /** 响应类型 */
    public static final String RESPONSE_TYPE = "application/json";

    /** 字符集 */
    public static final String CHARACTER_ENCODING_UTF8 = "utf-8";

    /** 管理员身份 */
    public static final String TOKEN_LOGIN_ROLE_ADMIN = "admin";

    /** 普通用户身份 */
    public static final String TOKEN_LOGIN_ROLE_USER = "user";

}
